"use client"
import React from "react";
import { useState } from "react";

export default function Template({children}:{children:React.ReactNode}){
    const [count,setCount] = useState(0);
    return <div className="template">
        <h2>我是template 页面   {count}</h2>
        <button onClick={()=>{setCount(count+1)}}>增加</button>
        {children}
    </div>
}